package com.zzg.springboot.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zzg.springboot.entity.EngBaseInfo;
import com.zzg.springboot.service.EngBaseInfoService;

@Controller
@RequestMapping("/api/springmvc")
public class EngBaseInfoController {

	private static final Logger logger = LoggerFactory.getLogger(EngBaseInfoController.class);
	
	@Autowired
	private EngBaseInfoService service;
	
	@RequestMapping(value="/searchByList", method={RequestMethod.GET})
	@ResponseBody
	public List<EngBaseInfo> searchByList(){
		return service.getList();
	}
}
